<template>
  <div style="width:100vw;" class="education-box">
    <div class="record-header">
      <!-- 返回按钮 -->
    </div>
    <div class="education-body">
      <div class="education-bodyhead">学历信息</div>
      <div class="record-detail">
        <div class="record-item flex-row">
          <label class="item-tip">
            <span class="iconfont iconmingpian init-icon"></span>学历：
          </label>
          <span class="item-content">{{eduObj.eduKind || '暂无'}}</span>
        </div>
        <div class="record-item flex-row">
          <label class="item-tip">
            <span class="iconfont iconcommpany init-icon"></span>毕业院校：
          </label>
          <span class="item-content">{{eduObj.school || '暂无'}}</span>
        </div>
        <div class="record-item flex-row">
          <label class="item-tip">
            <span class="iconfont icondengdai init-icon"></span>毕业时间：
          </label>
          <span class="item-content">{{eduObj.graTime || '暂无'}}</span>
        </div>
        <div class="record-item flex-row">
          <label class="item-tip">
            <span class="iconfont iconqiwangzhiwei init-icon"></span>所学专业：
          </label>
          <span class="item-content">{{eduObj.eduMajor || '暂无'}}</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { setText } from "../../untils/ddnavigate";
export default {
  name: "education",
  data() {
    return {
      msg: "",
      eduObj: {}
    };
  },
  mounted() {
    let getFileDetails = JSON.parse(localStorage.getItem("getFileDetails"));
    this.eduObj = getFileDetails;
    if (getFileDetails.eduKind == 0) {
      getFileDetails.eduKind = "大专";
    } else if (getFileDetails.eduKind == 1) {
      getFileDetails.eduKind = "本科";
    } else if (getFileDetails.eduKind == 2) {
      getFileDetails.eduKind = "硕士";
    } else if (getFileDetails.eduKind == 3) {
      getFileDetails.eduKind = "博士";
    } else {
      getFileDetails.eduKind = "其他";
    }
    setText("学历信息");
  }
};
</script>
<style lang="less" scoped>
@import url("~@/pagecss/education.less");
.init-icon {
  font-weight: 700;
  margin-right: 10px;
  color: #4787e3;
}
</style>